# -*- coding = utf-8 -*-
# @Time : 2022/8/22 14:34
# @Author :Henry L
# @File : Insert_to_dictionary.py
# @Software : PyCharm

class InsertData:
    def __init__(self):
        self.data = {}

    def insert(self, key, value):
        if key in self.data:
            self.data[key].append(value)
        else:
            l = [value]
            self.data[key] = l
